package com.linrui.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarSearchQuery extends BaseQuery {
    //==========高级查询条件============//
    private Long carType;
    private BigDecimal priceMin;//最小价格
    private BigDecimal priceMax;//最大价格
    private Integer carAgeType; // 车龄类型 0 以下 1 以上
    private Integer carAge;//车龄
    //是否超值
    private Integer costeffective;
    //急售
    private Integer rushsale;
    //准新车
    private Integer quasinewcar;
    //可迁全国
    private Integer transitivecountry;
    //==========高级查询条件============//
    //==========排序条件============//
    private String sortField;//排序字段
    private String sortType; //排序类型 desc降序 asc升序

    private String keyword;

    public BigDecimal getPriceMin() {
        return priceMin;
    }

    public void setPriceMin(BigDecimal priceMin) {
        this.priceMin = priceMin;
    }

    public BigDecimal getPriceMax() {
        return priceMax;
    }

    public void setPriceMax(BigDecimal priceMax) {
        this.priceMax = priceMax;
    }

    public Integer getCarAgeType() {
        return carAgeType;
    }

    public void setCarAgeType(Integer carAgeType) {
        this.carAgeType = carAgeType;
    }

    public Integer getCarAge() {
        return carAge;
    }

    public void setCarAge(Integer carAge) {
        this.carAge = carAge;
    }

    public Integer getCosteffective() {
        return costeffective;
    }

    public void setCosteffective(Integer costeffective) {
        this.costeffective = costeffective;
    }

    public Integer getRushsale() {
        return rushsale;
    }

    public void setRushsale(Integer rushsale) {
        this.rushsale = rushsale;
    }

    public Integer getQuasinewcar() {
        return quasinewcar;
    }

    public void setQuasinewcar(Integer quasinewcar) {
        this.quasinewcar = quasinewcar;
    }

    public Integer getTransitivecountry() {
        return transitivecountry;
    }

    public void setTransitivecountry(Integer transitivecountry) {
        this.transitivecountry = transitivecountry;
    }

    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
}